<!--
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2023-02-20 16:28:30
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2023-02-20 16:47:02
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局</title>
    <style>
        .box{
            display: flex;
            /* flex-wrap: ;
            flex-direction:row; */
            flex-flow: wrap row;
            /* justify-content: space-between;//项目间间距相等 */
               /* justify-content: space-around;//项目间的距离相等，项目之间的间距比边框的间距大一倍 */
               align-items:baseline;
               /* //baseline项目第一行基线相等 */
               /* stretch:未设置项目的高度或者为auto，则占整个项目的高度 */

        }
        .item{
            width: 100px;
            height: 100px;
            border: 1px solid #ddd;
            margin:10px;
        }
    </style>
</head>
<body>
   <p>flex分为容器和子元素</p>
    <div class="box">
        <div class="item">A</div>
        <div class="item">b</div>
        <div class="item">c</div>
        <div class="item">d</div>
        <div class="item">e</div>
        <div class="item">f</div>
        <div class="item">g</div>
        <div class="item">h</div>
        <div class="item">i</div>
        <div class="item">j</div>
        <div class="item">k</div>
        <div class="item">l</div>
    </div>
</body>
</html>